<?php
/**
 * Starts the framework
 * 
 * PHPUnit wants a Object.  This class provides a mechanism that maximizes the
 * value of PHPUnit and unit testing.
 * 
 * IMPORTANT:  You Must change the path to the bootstrap file to reflect the
 * installation location you choose during install.
 * @author Randy Casburn <randy@plurious.com>
 * @copyright Copyright Plurious Software, all rights reserved
 * @license MIT
 * @license http://www.opensource.org/licenses/mit-license.html
 * @link http://plurious.com/framework/documentation/classes/Front.html
 * @version 2.1
 * 
 * @uses framework\Front
 */
class index {
	
	function __construct() {
		// Change this to match your directory structure
		// This points to the plurious_framework directory one level above the DOCROOT
		include_once(dirname(dirname(dirname(__FILE__))).'/plurious/framework/bootstrap.php');
		// This launches the application by starting the Plurious Front Controller
		$plurious = framework\Front::getInstance();
	}    
}
/**
 * Remove this in production.
 */
$time_start = microtime(true);

new index();

/**
 * Remove this in production.
 */
$time_end = microtime(true);
$time = sprintf("%01.5f", $time_end - $time_start);

/**
 * Remove this in production.
 * 
 * Shows the duration and memory consumption of your script in action.
 */
function convert($size) {
   $unit=array('b','kb','mb','gb','tb','pb');
   return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];
}
echo 'Memory Consumed: '.convert(memory_get_peak_usage(true));
echo '<br>';
echo "Execution time: $time seconds\n";

?>